CC       = gcc 
#CFLAGS  = -x03
CFLAGS   = -g

EXECS   = pipeline pipeline_1

all: $(EXECS)

clean:
	/bin/rm -f *.o; 	/bin/rm -f *~;

bibrand.o: bibrand.c
	$(CC)  $(CFLAGS) -c bibrand.c -o bibrand.o

best.o: best.c
	$(CC)  $(CFLAGS) -c best.c -o best.o

mine.o: mine.c
	$(CC)  $(CFLAGS) -c mine.c -o mine.o

2pndp.o: 2pndp.c
	$(CC)  $(CFLAGS) -c 2pndp.c -o 2pndp.o

pipeline.o: pipeline.c
	$(CC)  $(CFLAGS) -c pipeline.c -o pipeline.o

pipeline: pipeline.o bibrand.o best.o mine.o
	$(CC) $(CFLAGS) -o pipeline pipeline.o bibrand.o best.o mine.o -lm -pthread

pipeline_1.o: pipeline_1.c
	$(CC)  $(CFLAGS) -c pipeline_1.c -o pipeline_1.o

pipeline_1: pipeline_1.o bibrand.o best.o mine.o
	$(CC) $(CFLAGS) -o pipeline_1 pipeline_1.o bibrand.o best.o mine.o -lm -pthread

